package com.alibaba.controller.htmlController;

import com.alibaba.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ManagerUserController {

    @Autowired
    UserService userService;

    public ModelAndView managerUser() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("manage-user");
        modelAndView.addObject("userList", userService.seleteAll());
        return modelAndView;
    }
}
